JavaScript

A5.u.elementhide Method

Syntax

A5.u.element.hide(element[,animation])

Arguments

elementelementstring

A pointer to a DOM element or the ID of an element.

animationobject

Animation settings.

typestring

Animation type. Can be one of the following properties: 'none', 'fade', 'slide', 'blind', 'clip', 'drop', 'explode', 'fold', 'puff', 'scale', 'size', or 'pulsate'.

durationnumber

The duration of the animation in milliseconds.

onCompletefunction

Function to call when the hide is complete.

Description

Hide an element that is hidden.

Discussion

Animation can be specified by passing in animation settings. Animation uses jQuery, if the jQuery library is not available, a plain hide will be done.

Example

// assume "ele" is a pointer to an element to be hidden
var animate = { 
	type: 'slide', 
	duration: 300
};
A5.u.element.hide(ele,animate);